package com.qfedu.fmmall.service;

import com.qfedu.fmmall.entity.Orders;
import com.qfedu.fmmall.vo.ResultVO;

import java.sql.SQLException;
import java.util.Map;

public interface OrderService {
//新增订单
    public Map<String,String> addOrder(String cids, Orders order) throws SQLException;
//更新订单状态
    public int updateOrderStatus(String orderId, String status);
//获取订单
    public ResultVO getOrderById(String orderId);
//关闭订单
    public void closeOrder(String orderId);
//订单列表
    public ResultVO listOrders(String userId,String status,int pageNum, int limit);

}
